import java.util.Scanner;


import m1.client.Client;
import m2.Composant;


public class ApplicationClient extends Thread{
	
	Client client;
	Scanner sc;
	
	public ApplicationClient(){
		client = new Client();
		sc = new Scanner(System.in);
	}
	
	public void run(){
		
		System.out.println("Entrez votre identifiant : ");
		String identifiant = sc.nextLine();
		System.out.println("Entrez votre requete : ");
		String requete = sc.nextLine();
		sc.close();
		
		execRequest(identifiant+"#"+requete);
	}

	public Composant getClient() {
		// TODO Auto-generated method stub
		return client;
	}

	public void execRequest(String string) {
		client.getLesServiceFourni().get("SendRequestS").activer(string);
	}

}
